package com.kay.component;

import com.kay.service.DemoService;
import org.apache.dubbo.config.annotation.Reference;
import org.springframework.stereotype.Component;

/**
 * @Description:
 * @Author: Kay
 * @CreateDate: 2021/9/15$ 12:30$
 * @UpdateUser: Kay
 * @UpdateDate: 2021/9/15$ 12:30$
 */
@Component
public class DemoComponent {
    @Reference(mock = "return null")
    private DemoService demoService;

    public String methodA() {
        return demoService.methodA();
    }

    public String methodB() {
        return demoService.methodB();
    }

    public String methodC() {
        return demoService.methodC();
    }
}
